user = 'test'
pw = 'test123'

numb = 0

while numb < 3:
    login_user = input('Input your login user :')
    login_pw = input('Input your login password :')

    if login_user == user and login_pw == pw:
        print('Ok  connected')
        break
    else:
        numb += 1
        print('Your user or password is wrong')
        print('You have {} chance'.format(3 - numb))

if numb == 3:
    print('Too many failures, quit')

